/*
 * NetSender.h
 *
 *  Created on: 2011-04-17
 *      Author: jacek
 */

#ifndef NETSENDER_H_
#define NETSENDER_H_

#include "Component.h"
#include <Socket.h>

using namespace Net;

class NetSender: public Component {
	Socket* senderSocket;
	Package package;
	bool IsNetEvent(unsigned int type);
    void ConvertEventHostToNet(Event & event);
public:
	NetSender();
	NetSender(Socket& senderSocket);
	virtual ~NetSender();
	virtual void Updata(Event event);
	virtual void Intialization();
	virtual void Dispose();
	virtual void SendEvent(Event event);
};

#endif /* NETSENDER_H_ */
